<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>POS机终端配置</title>
    <%@include file="common.jsp" %>
    <script type="text/javascript" src="/static/js/views/pos.js"></script>
</head>
<body>
<div class="easyui-layout" fit="true">
    <div data-options=" region:'north'" style="height: 175px">
        <fieldset style="border:2px solid #0f9ae0; border-radius:9px;">
            <legend style="color:blue;font-size: 20px">POS机终端配置</legend>
            <form id="orderBillForm" method="post">
                <big>
                    <table style="margin-left: 50px">
                        <tr>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <input name="macsiteP" class="easyui-textbox" data-options="label:'MAV地址:',labelWidth:80,width:250,labelAlign:'right'">
                            </td>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <select name="organizationNameP" class="easyui-combobox"
                                        data-options="
                                           label:'业务机构:',
                                           labelWidth:80,
                                           width:250,
                                           labelAlign:'right',
                                           valueField:'id',
                                           textField:'organizationName',
                                           url:'/organization/selectList'
                                           "/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <select name="bankNameSnP" class="easyui-combobox"
                                        data-options="
                                           label:'银行机构代码:',
                                           labelWidth:110,
                                           width:280,
                                           labelAlign:'right',
                                           valueField:'id',
                                           textField:'sn',
                                           url:'/bankName/selectListForBankName'
                                           "/>
                            </td>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <input name="companyCodeP" class="easyui-textbox" data-options="label:'公司代码:',labelWidth:80,width:250,labelAlign:'right'">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;
                                <input name="commercialCodeP" class="easyui-textbox" data-options="label:'商户号:',labelWidth:60,width:230,labelAlign:'right'">
                            </td>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <select name="stateP" class="easyui-combobox" data-options="
                                        label:'状态:',
                                        labelWidth:80,
                                        width:250,
                                        labelAlign:'right',
                                        valueField:'id',
                                        textField:'name',
                                        url:'/static/js/data/PosStatus.json'
                                        "/>
                            </td>
                        </tr>
                    </table>
                    <div align="right">
                        <a class="easyui-linkbutton" iconCls="icon-search" data-options="text:'搜索'" data-query="search"></a>
                        <a class="easyui-linkbutton" iconCls="icon-reload" data-options="text:'刷新'" data-cmd="reload"></a>
                    </div>
                </big>
            </form>
        </fieldset>
    </div>
    <div data-options="region:'center'">
        <table id="pos_datagrid"></table>
    </div>
    <div id="pos_dialog">
        <form id="pos_form" method="post">
            <input type="hidden" name="id">
            <div align="center" style="margin-top: 10px;" >
                <div>
                    <input type="text" name="macsite" class="easyui-textbox" data-options="label:'MAV地址:',labelPosition:'top', width:150">
                </div>
                <div>
                    <input type="text" name="agentPoint" class="easyui-textbox" data-options="label:'出单点/代理点:',labelPosition:'top', width:150">
                </div>
                <div>
                    <select name="state" class="easyui-combobox"
                            data-options="
						 width:150,
						 label:'状态:',
						 labelPosition:'top',
						 valueField:'id',
						 textField:'id',
						 url:'/static/js/data/PosStatus.json'
						">
                    </select>
                </div>
                <div>
                    <input type="text" name="companyCode" class="easyui-textbox" data-options="label:'公司代码:',labelPosition:'top', width:150">
                </div>
                <div>
                    <input type="text" name="commercialCode" class="easyui-textbox" data-options="label:'商户号:',labelPosition:'top', width:150">
                </div>
                <div>
                    <select name="organization.id" class="easyui-combobox"
                             data-options="
						 width:150,
						 label:'业务机构:',
						 labelPosition:'top',
						 valueField:'id',
						 textField:'organizationName',
						 url:'/organization/selectList'
						">
                    </select>
                </div>
                <div>
                    <select name="bankName.id" class="easyui-combobox"
                             data-options="
						 width:150,
						 label:'银行机构代码:',
						 labelPosition:'top',
						 valueField:'id',
						 textField:'sn',
						 url:'/bankName/selectListForBankName'
						">
                    </select>
                </div>
            </div>
        </form>
    </div>
    <div id="pos2_dialog">
        <form id="pos2_form" method="post">
            <input type="hidden" name="id">
            <div align="center" style="margin-top: 10px;" >
                <div>
                    <input type="text" name="macsite" class="easyui-textbox" data-options="label:'MAV地址:',labelPosition:'top', width:150,disabled:true">
                </div>
                <div>
                    <input type="text" name="agentPoint" class="easyui-textbox" data-options="label:'出单点/代理点:',labelPosition:'top', width:150,disabled:true">
                </div>
                <div>
                    <select name="state" class="easyui-combobox"
                            data-options="
						 width:150,
						 label:'状态:',
						 labelPosition:'top',
						 disabled:true,
						 valueField:'id',
						 textField:'id',
						 url:'/static/js/data/PosStatus.json'
						">
                    </select>
                </div>
                <div>
                    <input type="text" name="companyCode" class="easyui-textbox" data-options="label:'公司代码:',labelPosition:'top', width:150,disabled:true">
                </div>
                <div>
                    <input type="text" name="commercialCode" class="easyui-textbox" data-options="label:'商户号:',labelPosition:'top', width:150,disabled:true">
                </div>
                <div>
                    <select name="organization.id" class="easyui-combobox"
                             data-options="
						 width:150,
						 label:'业务机构:',
						 labelPosition:'top',
						 disabled:true,
						 valueField:'id',
						 textField:'organizationName',
						 url:'/organization/selectList'
						">
                    </select>
                </div>
                <div>
                    <select name="bankName.id" class="easyui-combobox"
                             data-options="
						 width:150,
						 label:'银行机构代码:',
						 labelPosition:'top',
						 disabled:true,
						 valueField:'id',
						 textField:'sn',
						 url:'/bankName/selectListForBankName'
						">
                    </select>
                </div>
            </div>
        </form>
    </div>
    <div data-options="region:'south'" style="height: 60px">
        <table align="right" style="margin-right: 10px;margin-top: 15px">
            <tr>
                <td><a class="easyui-linkbutton" data-options="iconCls:'icon-redo',width:80" data-cmd="check">查看</a></td>
                <td><a class="easyui-linkbutton" data-options="iconCls:'icon-redo',width:80" data-cmd="add">新增</a></td>
                <td><a class="easyui-linkbutton" data-options="iconCls:'icon-redo',width:80" data-cmd="edit">修改</a></td>
                <td><a class="easyui-linkbutton" data-options="iconCls:'icon-redo',width:80" data-cmd="del">删除</a></td>
            </tr>
        </table>

        <!-- 对话框底部按钮 -->
        <div id="pos_dialog_bt">
            <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
            <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">返回</a>
        </div>
        <!-- 对话框底部按钮 -->
        <div id="pos2_dialog_bt">
            <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel2">返回</a>
        </div>
    </div>
</div>
</body>
</html>
